package vo;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Alexander
 */
public class SubjectVO implements IValueObject {

    private String name;
    private int code;
    private List<GroupVO> groups;
    private int calendarId;
    private int credits;

    public SubjectVO() {
        groups = new ArrayList<>();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<GroupVO> getGroups() {
        return groups;
    }

    public void setGroups(List<GroupVO> groups) {
        this.groups = groups;
    }

    public int getCalendarId() {
        return calendarId;
    }

    public void setCalendarId(int calendarId) {
        this.calendarId = calendarId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCredits() {
        return credits;
    }

    public void setCredits(int credits) {
        this.credits = credits;
    }

    @Override
    public String toString() {
        return name;
    }
}
